<?php
/**
 *
 */
class ProfileController extends Controller{
    public $content = array();
    public function actionIndex(){
        //echo 'abc
        $this->layout = 'main_after_login';
        $model = User::model()->findByPk(1);

        $this->render('/profile/register', array(
            'model' => $model
        ));
    }


    /**
     * Performs the AJAX validation.
     * @param CModel the model to be validated
     */
    protected function performAjaxValidation($model) {
        if (isset($_POST['ajax']) && $_POST['ajax'] === 'user-form') {
            echo CActiveForm::validate($model);
            Yii::app()->end();
        }
    }
}